<?php

class IndexController extends Zend_Controller_Action
{
   
   private function _setTitle($name) {
      $view = Zend_Layout::getMvcInstance()->getView(); 
      $this->view->title = $view->translate->_($name);
      $this->view->headTitle($this->view->title);
   }

   public function init()
   {
      $this->_helper->layout->setLayout('default');
      $_name = str_replace('Action', '', $this->getRequest()->getActionName());
      if($_name == 'index') {
         $_name = 'home';
      }
      $this->_setTitle(ucfirst($_name));
   }

   public function indexAction() {
      
   }
   
   

}
